/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#ifndef LIB2D_GUI_VIEW_CHECKBOX_H
#define LIB2D_GUI_VIEW_CHECKBOX_H

#include "Button.h"

namespace liba
{
namespace lib2d
{
namespace gui
{
class CheckBox;
namespace view
{

class CheckBox : public Button
{
public:
	explicit CheckBox( gui::CheckBox * obj );
	virtual void render( hard::Renderer * rend );
	virtual bool on_attribute( xml::Provider * prov, const std::string & name, const std::string & value );
protected:
	const gui::CheckBox * obj;
	Rect checker_rect;
};

} //namespace view
} //namespace gui
} //namespace lib2d
} //namespace liba

using namespace liba;

#endif //LIB2D_GUI_VIEW_CHECKBOX_H

